package com.sport;

import com.sport.websocket.RoomWs;
import com.sport.websocket.RoomWs2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class SportServerApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(SportServerApplication.class, args);
        RoomWs.setApplicationContext(applicationContext);
        RoomWs2.setApplicationContext(applicationContext);
    }

}
